<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="overflow: hidden">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${Title}</title>
<link rel="shortcut icon" href="${res}favicon.ico" type="image/x-icon" />
<!--Basic Styles-->
<link href="${ctx }framework/css/font.css" rel="stylesheet" />
<link href="${ctx }framework/miniui/themes/material/miniui.css"
	rel="stylesheet" />
<link href="${ctx }framework/css/app.min.1.css" rel="stylesheet"
	type="text/css" />
<link href="${ctx }framework/css/app.min.2.css" rel="stylesheet"
	type="text/css" />
<script src="${ctx }framework/main.js" type="text/javascript"></script>
<style type="text/css">
.input-group-addon{width:160px;text-align: right;}
</style>
<script> 
	var strTrue = "";
	 $(function info(){
		Server.sendRequest("visit.companyInfo", {}, function(response){
			var cbl1 = mini.get('CompanyMobile');
			cbl1.setData(response.info);
			strTrue = response.strTrue;
		});
	}); 
	function onValueChanged(e){
		var cbl1 = mini.get('CompanyMobile');
		
		if(e.value=="true"){
			console.log(e.value);
			cbl1.setValue(str);
		}else{
			cbl1.setValue("");
		}
	}
	function onValueChanged(e){
		var notCompany = mini.get('notCompany');
		if(notCompany.checked){
			notCompany.setValue("");
		}
		var cbl1 = mini.get('CompanyMobile');
		if(e.value=="true"){
			cbl1.setValue(strTrue);
		}else{
			cbl1.setValue("");
		}
	}
	function onValueChanged2(e){
		var cbl1 = mini.get('CompanyMobile');
		var compamy = mini.get('compamy');
		if(compamy.checked){
			compamy.setValue("");
		}
		if(e.value=="true"){
			cbl1.setValue("");
		}else{
			cbl1.setValue("");
		}
		}
</script> 
</head>
<body class="dialog">
<form id="form2" style="width: 800px;height: 500px;overflow: scroll;">
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
			<div id="compamy"  class="mini-checkbox" readOnly="false"  text="所有一级账号" onvaluechanged="onValueChanged"></div>
			<div id="notCompany" class="mini-checkbox" readOnly="false" id="非体系内账号1" text="非体系内账号" onvaluechanged="onValueChanged2"></div>
				<div class="input-group" style="margin-top:8px;display:none" >
					<span class="input-group-addon"></span>
				</div>
				<div class="input-group">
					<div 
						id="CompanyMobile" 
						class="mini-checkboxlist"
						repeatItems="2" 
						repeatLayout="table"
						textField="text" 
						valueField="id" 
					 >
					</div>
				</div>
			</div>
		</div>
	</div>
</form>
</body>
</html>